<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-robot-add">
			<input name="gameId"  type="hidden" id="treeId"/>
			<div class="form-group">	
				<label class="col-sm-3 control-label">游戏：</label>
				<div class="col-sm-8">
					<input class="form-control" type="text" name="gameName" id="treeName" onclick="selectGameTree()" readonly="true">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">进入数量：</label>
				<div class="col-sm-8">
					<input id="robotNum" name="robotNum" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">时间波动：</label>
				<div class="col-sm-8">
					<input id="timeRange" name="timeRange" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">中奖概率：</label>
				<div class="col-sm-8">
					<input id="winProbability" name="winProbability" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">中奖浮动值：</label>
				<div class="col-sm-8">
					<input id="winVariance" name="winVariance" class="form-control" type="text">
				</div>
			</div>
		</form>
	</div>
    <div th:include="include::footer"></div>
	<script th:src="@{/ruoyi/common.js}"></script>
    <script type="text/javascript">
		var prefix = ctx + "jl/robot"
		$("#form-robot-add").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/add", $('#form-robot-add').serialize());
	        }
	    }

	</script>
</body>
</html>
